/*
 * Copyright (C), 2013-2016, 汇通达网络有限公司
 * FileName: CommonResult.java
 * Author:   杨振宁
 * Date:     2016年5月12日 下午2:43:43
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.htd.htdapmapi.common;

import lombok.Data;

import java.io.Serializable;

@Data
public class CommonResult implements Serializable {

	/**
	 */
	private static final long serialVersionUID = 1L;
	
	private static final String SUCCESS_CODE ="0000";
	
	private static final String SUCCESS_MSG = "成功";

	public CommonResult() {
		this.responseCode=SUCCESS_CODE;
		this.responseMsg=SUCCESS_MSG;
	}
	private String responseCode;
	
	private String responseMsg;
	
	public void fail(String responseCode, String responseMsg){
		this.responseCode=responseCode;
		this.responseMsg=responseMsg;
	}

	@Override
	public String toString() {
		return "CommonResult [responseCode=" + responseCode + ", responseMsg=" + responseMsg + "]";
	}

}
